<!-- header -->

<%
	String redirect = (String) request.getAttribute("redirected_from_home");
	if( redirect == null || !redirect.equalsIgnoreCase("true") ) {		
		response.sendRedirect("/writeonproject/home");
	}
%>

<jsp:include page="header.jsp">
	<jsp:param name="title" value="My Storylists"/>
</jsp:include>

<script type="text/javascript" src="js/storylist.js"></script>
<script type="text/javascript">updateMyStorylistsViewInit();</script>
<!-- / header -->

<% 
	if( request.getAttribute("userid") == null ) {
		response.sendRedirect("/writeonproject/home");
	}
%>

<!-- content -->
	<div class="body7">
		<div class="main">
			<section id="content">
				<div class="wrapper">
					<article>
						<div class="pad1">
							<h2>My Storylists</h2>
							<a href="" class="button shrink" onClick="createStorylist(); return false;"><span><span>Create New Storylist</span></span></a>
							<br><br>
							<table class="storylist_names">
								<thead>
									<tr>
										<th class="sl_names1 left_col">Storylist Name</th>
										<th class="sl_names2">Stories</th>
										<th class="sl_names3"></th>
									</tr>
								</thead>
								<tbody id="mystorylists_body"></tbody>
							</table>
							<div id="nostories"></div>
						</div>
					</article>
				</div>
			</section>
		</div>
	</div>
	<!-- / content -->

<!-- footer -->
<jsp:include page="footer.jsp"/>
<!-- / footer -->
